package xin.homeant.framework.httpclient.exceptions;

/**
 * <P>
 * http 异常处理类
 * </P>
 * 
 * @author homeant homeanter@163.com
 * @Data 2017年5月20日 下午4:22:33
 */
public class HttpException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    /**
     * Default constructor
     *
     * @param message message explaining what went wrong
     * @param e original exception
     */
    public HttpException(String message, Exception e) {
        super(message, e);
    }

    /**
     * No-exception constructor. Used when there is no original exception
     *
     * @param message message explaining what went wrong
     */
    public HttpException(String message) {
        super(message, null);
    }

    /**
     * Exception constructor. Used to simply wrap an exception.
     *
     * @param e original exception
     */
    public HttpException(Exception e) {
        super(e);
    }
}
